package com.iworkh.spring.web.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * TestController
 *
 * @author: iworkh-沐雨云楼
 * @date: 2020-01-04
 */

@Controller
@RequestMapping("/springmvc")
public class TestController {

    @ResponseBody
    @RequestMapping("/firstInterceptor")
    public String firstInterceptor(){

        System.out.println("iworkh---测试拦截器-firstInterceptor");

        return "firstInterceptor";
    }

    @ResponseBody
    @RequestMapping("/multiInterceptor")
    public String multiInterceptor(){

        System.out.println("iworkh---测试拦截器-multiInterceptor");

        return "multiInterceptor";
    }
}
